package com.harmonyos.studyharmonyos.slice;

import com.harmonyos.studyharmonyos.ResourceTable;
import com.harmonyos.studyharmonyos.util.LogUtils;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import ohos.agp.components.Slider;

public class SliderDemoAbilitySlice extends AbilitySlice {


    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setUIContent(ResourceTable.Layout_ability_slider_demo);

//        Slider slider = (Slider) findComponentById(ResourceTable.Id_btn_slider_demo);
//        slider.setValueChangedListener(new Slider.ValueChangedListener() {
//            @Override
//            public void onProgressUpdated(Slider slider, int i, boolean b) {
//                LogUtils.info("SliderDemoAbilitySlice","slider.getprogress(）   "+ slider.getProgress()+"   i "+i);
//            }
//
//            @Override
//            public void onTouchStart(Slider slider) {
//
//            }
//
//            @Override
//            public void onTouchEnd(Slider slider) {
//
//            }
//        });
    }

    @Override
    public void onActive() {
        super.onActive();
    }

    @Override
    public void onForeground(Intent intent) {
        super.onForeground(intent);
    }
}
